import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import java.awt.event.KeyListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

public class SudokuActionListener implements ActionListener, ItemListener{
		
	private SudokuAction action;
	
	public SudokuActionListener(SudokuAction action)
	{	
		this.action = action;
	}
	
	public void actionPerformed(ActionEvent e)
	{
		SudokuActionHandler.sodokuHandlerInstance.executeSudokuAction(action);
	}

	public void itemStateChanged(ItemEvent e)
	{
		SudokuActionHandler.sodokuHandlerInstance.executeSudokuAction(action);
	}
	
	
}
